.order-process {
  padding: 20px;
  background: #f0f2f5; /* Light grey background for the page */
  min-height: calc(100vh - 40px);
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif; /* Using Inter font as per instructions */
}

.page-header {
  margin-bottom: 24px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-header h2 {

  font-size: 24px; /* Slightly larger heading */
  color: #1e293b;
  font-weight: 700; /* Bolder font weight */
}

.description {
  margin: 16px auto;
  max-width: 800px;
}

/* Ng-Zorro Alert specific styling adjustments */
:host ::ng-deep .ant-alert-info {
  background-color: #e6f7ff;
  border-color: #91d5ff;
  color: #0050b3;
}

:host ::ng-deep .ant-alert-message {
  font-weight: 600;
  color: #0050b3;
}

:host ::ng-deep .ant-alert-description {
  color: #0050b3;
}


.control-panel {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  text-align: center;
}

.control-panel form {
  display: flex; /* Use flexbox for better alignment */
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px; /* Space between form items */
}

/* Adjust Ng-Zorro form item margin for inline layout */
:host ::ng-deep .ant-form-item {
  margin-bottom: 0 !important; /* Remove default bottom margin */
}

/* Style for Ng-Zorro buttons */
:host ::ng-deep .ant-btn {
  border-radius: 4px; /* Rounded corners for buttons */
  transition: all 0.3s ease;
  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

.performance-stats {
  margin-bottom: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-title {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 32px; /* Larger stat values */
  font-weight: 700; /* Bolder */
  color: #1e293b;
  line-height: 1.2;
}

.table-container {
  background: #fff;
  width: 100%;
  border-radius: 8px; /* Rounded corners for the table container */
  overflow: hidden; /* Ensures rounded corners apply to content */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

  /* Deep selectors for Ng-Zorro table components */
  :host ::ng-deep .ant-table {
    width: 100%;
    font-size: 13px;
    border-radius: 8px; /* Apply rounded corners to the table itself */

    .ant-table-thead > tr > th {
      background-color: #fafafa;
      color: #606266;
      font-weight: 500;
      height: 44px;
      padding: 8px 0;
      border-bottom: 1px solid #f0f0f0; /* Subtle border for header */
    }

    .ant-table-tbody > tr > td {
      padding: 8px 0;
      color: #606266;
      border-bottom: 1px solid #f0f0f0; /* Subtle border for rows */
    }

    .ant-table-body {
      width: 100% !important;
    }
  }
}

.order-type-tag {
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px; /* Slightly more rounded tags */
  font-weight: 500;
}

/* Ng-Zorro Tag color overrides for specific types */
:host ::ng-deep .ant-tag-processing { /* Corresponds to '借阅' */
  background-color: #e6f7ff;
  border-color: #91d5ff;
  color: #1890ff;
}

:host ::ng-deep .ant-tag-success { /* Corresponds to '归还' */
  background-color: #f6ffed;
  border-color: #b7eb8f;
  color: #52c41a;
}

:host ::ng-deep .ant-tag-warning { /* Corresponds to '预约' */
  background-color: #fffbe6;
  border-color: #ffe58f;
  color: #faad14;
}

:host ::ng-deep .ant-tag-default { /* Corresponds to '续借' */
  background-color: #f5f5f5;
  border-color: #d9d9d9;
  color: #595959;
}


.order-status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px; /* Slightly more rounded status indicators */
  font-weight: 500;

  &.processing {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
  }

  &.pending { /* Renamed from 'waiting' to 'pending' to match data */
    background-color: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
  }

  &.completed {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
  }

  &.cancelled {
    background-color: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
  }
}

.operation-buttons {
  display: flex;
  justify-content: center;
  gap: 4px; /* Space between buttons */

  .ant-btn-sm { /* Ng-Zorro's small button size class */
    padding: 4px 10px;
    font-size: 12px;
  }
}

/* Ng-Zorro Progress Bar styling adjustments */
:host ::ng-deep .ant-progress {
  width: 90%;
  margin: 0 auto;


}